package cn.chencaiju.day09;

import org.junit.Test;

public class BitOperator {
	@Test public void testhasDuplicate() {
		System.out.println(hasDuplicate());
	}
	public boolean hasDuplicate() {
		int[] nums= {1,2,3,4,5,9,7,8,9};
		int mark=0;
		for(int i:nums) {
			int result=1<<i-1;
			mark=mark|result;
		}
		return mark!=0b111111111;
	}
	public boolean hasDuplicate(int[] nums) {
		if(nums==null||nums.length==0) {
			return false;
		}
		int len=nums.length;
		
		return false;
		
	}
}
